package com.example.mapstruct.complex_map;

public class Main {
    public static void main(String[] args) {
        Car car = new Car();
        car.setPrice(45);
        car.setCustomer(new Customer(){{setName("abc");}});
        System.out.println(car);

        CarDTO carDTO = CarMapper.INSTANCE.carToCarDTO(car);
        System.out.println(carDTO);
    }
}
